import React from "react";
import './App.css';
import {
    BrowserRouter as Router,
    Switch,
    Route,
    Link
} from "react-router-dom";

import Login from './containers/loginPage/index'
import Overview from "./containers/overview";
import RentUserList from "./containers/userManage/rentUserList";
import AdminUserList from "./containers/userManage/adminUserList";
import UserFramework from "./containers/userManage/authFramework";
import CatalogList from "./containers/productManage/catalogList";
import CatalogUpload from "./containers/productManage/catalogUpload";
import ProductList from "./containers/productManage/productList";
import ProductUpload from "./containers/productManage/productUpload";
import ApplyingOrders from "./containers/orderManage/applyingOrders";
import SentOrders from "./containers/orderManage/sentOrders";
import RemindingOrders from "./containers/orderManage/remindingOrders";
import CompletedOrders from "./containers/orderManage/completedOrders";
import ReturnAnalysis from "./containers/dataAnalysis/returnAnalysis";
import KPIAnalysis from "./containers/dataAnalysis/kpiAnalysis";

export default function App() {
    return (
        <Router>
            <Switch>
                <Route exact path="/" component={Login}/>

                {/*概览*/}
                <Route exact path="/tianyi/overview" component={Overview}/>

                {/*租借用户信息表*/}
                <Route exact path="/tianyi/rentUserList" component={RentUserList}/>

                {/*后台用户信息表*/}
                <Route exact path="/tianyi/adminUserList" component={AdminUserList}/>

                {/*权限架构设置*/}
                <Route exact path="/tianyi/authFramework" component={UserFramework}/>

                {/*画册管理*/}
                <Route exact path="/tianyi/catalogList" component={CatalogList}/>

                {/*画册上传*/}
                <Route exact path="/tianyi/catalogUpload" component={CatalogUpload}/>

                {/*产品管理*/}
                <Route exact path="/tianyi/productList" component={ProductList}/>

                {/*产品上传*/}
                <Route exact path="/tianyi/productUpload" component={ProductUpload}/>

                {/*待审核订单*/}
                <Route exact path="/tianyi/applyingOrders" component={ApplyingOrders}/>

                {/*已发送订单*/}
                <Route exact path="/tianyi/sentOrders" component={SentOrders}/>

                {/*待催还订单*/}
                <Route exact path="/tianyi/remindingOrders" component={RemindingOrders}/>

                {/*已完成订单*/}
                <Route exact path="/tianyi/completedOrders" component={CompletedOrders}/>

                {/*回馈统计*/}
                <Route exact path="/tianyi/returnAnalysis" component={ReturnAnalysis}/>

                {/*KPI统计*/}
                <Route exact path="/tianyi/kpiAnalysis" component={KPIAnalysis}/>

            </Switch>
        </Router>
    );
}
